package com.neepu.serviceImpl;

import com.neepu.dao.InvestigationMapper;
import com.neepu.pojo.Investigation;
import com.neepu.service.InvestigationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("InvestigationService")
public class InvestigationServiceImpl implements InvestigationService {


    @Autowired
    private InvestigationMapper investigationMapper;

    @Override
    public List<Investigation> findAllInvestigation() {
        return investigationMapper.findAllInvestigation();
    }

    @Override
    public void insertInvestigation(Investigation investigation) {
        investigationMapper.insertInvestigation(investigation);
    }
}
